
{% extends 'base.html' %}
{% load static %}
{% block css %}
<!--<link rel="stylesheet" href="{% static '/css/styles.css'%}">-->
<!--<link rel="stylesheet" href="{% static '/css/commons.css'%}">-->





{% endblock %}

{% block content %}
<link rel="stylesheet" href="{% static '/css/styles.css'%}">
<link rel="stylesheet" href="{% static '/css/commons.css'%}">
<link rel="stylesheet" href="{% static '/css/stylee.css'%}">
<script type="text/javascript" src="{% static '/js/jquery.1.10.1.min.js'%}"></script>
<script src="{% static '/js/jquery.lib.min.js'%}" type="text/javascript"></script>
<script type="text/javascript" src="{% static '/js/ajaxfileupload.js'%}"></script>
<script src="{% static '/js/additional-methods.js'%}" type="text/javascript"></script>
{% for resume in re %}
<style>

element.style {
}
nav .logo img {
    height: 100%;
    margin-top: -10px;}
    .btn{
    background:none;}
</style>
<div class="cclearfix">
	<div class="ccontent_l">
		<div class="cfl" id="resume_name">
			<div class="nameShow fl">
				<h1 title="jason的简历">{{resume.username}}的简历</h1>
				<span class="rename">重命名</span> | <a target="_blank" href="h/resume/preview.html">预览</a>
			</div>
			<form class="fl dn" id="resumeNameForm">
				<input type="text" value="jason的简历" name="resumeName" class="nameEdit c9">
				<input type="submit" value="保存"> | <a target="_blank" href="h/resume/preview.html">预览</a>
			</form>
		</div><!--end #resume_name-->



		<div class="profile_box" id="basicInfo">
			<h2>基本信息</h2>
			<span class="c_edit"></span>
			<div class="basicShow">
				<span>{{resume.username}} |  {{resume.sex}} |    {{resume.edu}} <br>
				{{resume.mobile}} | {{resume.email}}<br></span>

			</div><!--end .basicShow-->
            <h2>工作岗位</h2>
            <div class="profile_box" >
            {{resume.position}}
            </div>
			<h2>工作经验</h2>
			<div class="workyear">
                {{resume.exper}}
<!--				<textarea type="hidden" class="workyear" name="selfDescription" placeholder="请添加你的工作经验,让大家更快认识你吧"></textarea>-->
			</div>
            <div class="selfDescription">
			<h2>个人简介</h2>
                {{resume.description}}
            </div>
<!--			<textarea type="hidden" class="selfDescription s_textarea" name="selfDescription" placeholder="做一个简单描述吧"></textarea>-->

			<div class="basicEdit dn">
				<form id="profileForm" method="post" action="/resume/add">
				  <table>
					<tbody><tr>
					  <td valign="top">
						<span class="redstar">*</span>
					  </td>
					  <td>
						<input type="text" placeholder="姓名" value="" name="username" id="name">
					  </td>
					  <td valign="top"></td>
					  <td>
						  <ul class="profile_radio clearfix reset">
							<li class="current">
								 男<em></em>
								<input type="radio" checked="checked" name="sex" value="男">
							</li>
							<li>
								  女<em></em>
								<input type="radio" name="sex" value="女">
							</li>
						  </ul>
					  </td>
					</tr>
					<tr>
					  <td valign="top">
						<span class="redstar">*</span>
					  </td>
					  <td>
						<input type="hidden" id="topDegree" value="大专" name="edu">
						<input type="button" value="大专" id="select_topDegree" class="profile_select_190 profile_select_normal">
						<div class="boxUpDown boxUpDown_190 dn" id="box_topDegree" style="display: none;">
							<ul>
																			<li>大专</li>
																			<li>本科</li>
																			<li>硕士</li>
																			<li>博士</li>
																			<li>其他</li>
																	</ul>
						</div>
					  </td>

					</tr>
					<tr>
					  <td valign="top">
						<span class="redstar">*</span>
					  </td>
					  <td colspan="3">
						  <input type="text" placeholder="手机号码" value="" name="mobile" id="tel">
					  </td>
					</tr>
					<tr>
					  <td valign="top">
						<span class="redstar">*</span>
					  </td>
					  <td colspan="3">
						  <input type="text" placeholder="接收面试通知的邮箱" value="" name="email" id="email">
					  </td>
					</tr>
                    <tr>
					  <td valign="top">
						<span class="redstar">*</span>
					  </td>
					  <td colspan="3">
						  <input type="text" placeholder="工作岗位" value="" name="position" id="position">
					  </td>
					</tr>
                    <tr>
					  <td valign="top">
						<span class="redstar">*</span>
					  </td>
					  <td colspan="3">
						  <input type="text" placeholder="工作经验" value="" name="exper" id="workyear">
					  </td>
					</tr>
                    <tr>
					  <td valign="top">
						<span class="redstar">*</span>
					  </td>
					  <td colspan="30">
						  <input type="text" placeholder="个人简介" value="" name="description" id="selfDescription">
					  </td>
					</tr>
					<tr>
					  <td></td>
					  <td colspan="3">
						  <input type="submit" value="保 存" class="btn_profile_save">
						  <a class="btn_profile_cancel" href="javascript:;">取 消</a>
					  </td>
					</tr>
				  </tbody></table>
				</form><!--end #profileForm-->

			</div><!--end .basicEdit-->
			<input type="hidden" id="nameVal" value="">
			<input type="hidden" id="genderVal" value="">
			<input type="hidden" id="topDegreeVal" value="">
			<input type="hidden" id="currentStateVal" value="">
			<input type="hidden" id="emailVal" value="">
            <input type="hidden" id="positionVal" value="">
            <input type="hidden"  id="workyearVal" value="">
            <input type="hidden" id="selfDescriptionVal" value="">
<!--			<input type="hidden" id="telVal" value="">-->
<!--			<input type="hidden" id="pageType" value="1">-->
		</div><!--end #basicInfo-->



<input type="hidden" id="userid" name="userid" value="314873">

		<!-------------------------------------弹窗lightbox ----------------------------------------->

		<!------------------------------------- end ----------------------------------------->

		<script src="static/js/Chart.min.js" type="text/javascript"></script>
		<script src="static/js/profile.min.js" type="text/javascript"></script>
		<!-- <div id="profileOverlay"></div> -->
		<div class="" id="qr_cloud_resume" style="display: none;">
			<div class="cloud">
				<img width="134" height="134" src="">
				<a class="close" href="javascript:;"></a>
			</div>
		</div>
		<script>
		$(function(){
			$.ajax({
		        url:ctx+"/mycenter/showQRCode",
		        type:"GET",
		        async:false
		   	}).done(function(data){
		        if(data.success){
		             $('#qr_cloud_resume img').attr("src",data.content);
		        }
		   	});
			var sessionId = "resumeQR"+314873;
			if(!$.cookie(sessionId)){
				$.cookie(sessionId, 0, {expires: 1});
			}
			if($.cookie(sessionId) &amp;&amp; $.cookie(sessionId) != 5){
				$('#qr_cloud_resume').removeClass('dn');
			}
			$('#qr_cloud_resume .close').click(function(){
				$('#qr_cloud_resume').fadeOut(200);
				resumeQR = parseInt($.cookie(sessionId)) + 1;
				$.cookie(sessionId, resumeQR, {expires: 1});
			});
		});
		</script>
					<div class="clear"></div>
					<input type="hidden" value="97fd449bcb294153a671f8fe6f4ba655" id="resubmitToken">
			    	<a rel="nofollow" title="回到顶部" id="backtop" style="display: none;"></a>
			    </div><!-- end #container -->
			</div><!-- end #body -->


	</div>

	<script src="static/js/core.min.js" type="text/javascript"></script>
	<script src="static/js/popup.min.js" type="text/javascript"></script>

	<!--  -->

	<script type="text/javascript">
	$(function(){
		$('#noticeDot-1').hide();
		$('#noticeTip a.closeNT').click(function(){
			$(this).parent().hide();
		});
	});
	var index = Math.floor(Math.random() * 2);
	var ipArray = new Array('42.62.79.226','42.62.79.227');
	var url = "ws://" + ipArray[index] + ":18080/wsServlet?code=314873";
	var CallCenter = {
			init:function(url){
				var _websocket = new WebSocket(url);
				_websocket.onopen = function(evt) {
					console.log("Connected to WebSocket server.");
				};
				_websocket.onclose = function(evt) {
					console.log("Disconnected");
				};
				_websocket.onmessage = function(evt) {
					//alert(evt.data);
					var notice = jQuery.parseJSON(evt.data);
					if(notice.status[0] == 0){
						$('#noticeDot-0').hide();
						$('#noticeTip').hide();
						$('#noticeNo').text('').show().parent('a').attr('href',ctx+'/mycenter/delivery.html');
						$('#noticeNoPage').text('').show().parent('a').attr('href',ctx+'/mycenter/delivery.html');
					}else{
						$('#noticeDot-0').show();
						$('#noticeTip strong').text(notice.status[0]);
						$('#noticeTip').show();
						$('#noticeNo').text('('+notice.status[0]+')').show().parent('a').attr('href',ctx+'/mycenter/delivery.html');
						$('#noticeNoPage').text(' ('+notice.status[0]+')').show().parent('a').attr('href',ctx+'/mycenter/delivery.html');
					}
					$('#noticeDot-1').hide();
				};
				_websocket.onerror = function(evt) {
					console.log('Error occured: ' + evt);
				};
			}
	};
	CallCenter.init(url);
	</script>



{%endfor%}
<!--分页功能-->
<style>
	.ppagination a {
    font-size: 14px;
    color: #969696!important;
    border: 1px solid #dcdcdc;
    border-radius: 20px;
    }
    .ppagination {
    margin: 20px 0;
    text-align: center;
    display: block;
    }
</style>
<div class="ppagination">
    <span class="step-links">
        {% if page_obj.has_previous %}
            <a href="?page=1">《首页</a>
            <a href="?page={{page_obj.previous_page_number}}">上一页</a>
        {% endif %}
        {% if page_obj.has_next %}
            <a href="?page={{page_obj.next_page_number}}">下一页</a>
            <a href="?page={{page_obj.paginator.num_pages}}">末页》</a>
        {% endif %}
        <span class="current">
            第{{page_obj.number}} 页/共{{page_obj.paginator.num_pages}}页
        </span>
    </span>
</div>

{% endblock %}</div>